﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Welcome to WebApp</title>
</head>
<body>
	<h1>You must login to use homepage</h1>
	<div style="color:red">${message}</div>
	<s:form action="loginuser">								<!-- "action" phai giong ten name trong struts.xml-->
		<s:textfield name="user" label="User" />			<!-- "name" thuoc tinh trong LoginAction-->
		<s:password name="password" label="Password" />		<!-- "name" thuoc tinh trong LoginAction-->
		<s:submit name="login" label="Submit"/>
	</s:form>
</body>
</html>